<?php
/*
 * Created on Feb 17, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

class BannerModel{	
	
	function BannerModel() {}
	
	function getBanners() {
		global $connDB;   
		$sql = "SELECT * FROM ".TBL_BANNER_IMG.
				" WHERE deleteFlag = 0". 
				" ORDER BY sortNo DESC";
		$result = $connDB->DB_query($sql,$connDB->connection);
		
      	return $result;
	}
	
	function getArrayNameRegions($resultSet = null){
		global $connDB;   
		if($resultSet == null) {
			
			return null;
		}
		
		return $connDB->DB_fetch_array($resultSet);
	}
	
};

/* Create userinfo controller object */
$bannerModel = new BannerModel;
?>